using Estsh.Core.Models;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Estsh.Core.Model.Extend.Models
{
    /// <summary>
    /// ，数据实体对象
    /// </summary>
    [Table("mes_work_order")]
    [Serializable]
    public class MesWorkOrder_Extend : MesWorkOrder
	{
        

        [Column("ref_work_order_no")]
        [DisplayName(" ")]
        public string RefWorkOrderNo { get; set; }

        [Column("receiving_date")]
        [DisplayName(" ")]
        public DateTime? ReceivingDate { get; set; }

        [Column("order_delivery_date")]
        [DisplayName(" ")]
        public DateTime? OrderDeliveryDate { get; set; }

        [Column("operation_code")]
        [DisplayName(" ")]
        public string OperationCode { get; set; }

        [Column("operation_name")]
        [DisplayName(" ")]
        public string OperationName { get; set; }

        [Column("work_type")]
        [DisplayName(" ")]
        public string WorkType { get; set; }

        [Column("quota_salary")]
        [DisplayName(" ")]
        public string QuotaSalary { get; set; }

        [Column("mould")]
        [DisplayName(" ")]
        public string Mould { get; set; }

        [Column("frock")]
        [DisplayName(" ")]
        public string Frock { get; set; }

        [Column("top_operation_code")]
        [DisplayName(" ")]
        public string TopOperationCode { get; set; }

        [Column("top_operation_name")]
        [DisplayName(" ")]
        public string TopOperationName { get; set; }

        [Column("post_operation_code")]
        [DisplayName(" ")]
        public string PostOperationCode { get; set; }

        [Column("post_operation_name")]
        [DisplayName(" ")]
        public string PostOperationName { get; set; }

       

        [Column("pdline_name")]
        [DisplayName(" ")]
        public string PdlineName { get; set; }

        [Column("part_name")]
        [DisplayName(" ")]
        public string PartName { get; set; }

        [Column("classes_code")]
        [DisplayName(" ")]
        public string ClassesCode { get; set; }

        [Column("classes_name")]
        [DisplayName(" ")]
        public string ClassesName { get; set; }

        [Column("latest_end_time")]
        [DisplayName(" ")]
        public DateTime? LatestEndTime { get; set; }

        [Column("produce_start_time")]
        [DisplayName(" ")]
        public DateTime? ProduceStartTime { get; set; }

        [Column("produce_end_time")]
        [DisplayName(" ")]
        public DateTime? ProduceEndTime { get; set; }

        [Column("produce_time")]
        [DisplayName(" ")]
        public DateTime? ProduceTime { get; set; }

        [Column("work_code")]
        [DisplayName(" ")]
        public string WorkCode { get; set; }

        [Column("change_time")]
        [DisplayName(" ")]
        public DateTime? ChangeTime { get; set; }

        [Column("is_repair")]
        [DisplayName(" ")]
        public bool? IsRepair { get; set; }

        [Column("equipment_code")]
        [DisplayName(" ")]
        public string EquipmentCode { get; set; }

        [Column("check_status")]
        [DisplayName(" ")]
        public int CheckStatus { get; set; }
        #region 状态类型名称

        [Column("order_type_name")]
        [DisplayName(" ")]
        public string orderTypeName { get; set; }
        [Column("order_status_name")]
        [DisplayName(" ")]
        public string orderStatusName { get; set; }


		#endregion
		/// <summary>
		/// 不良数
		/// </summary>
		[Column("bad_qty")]
		[DisplayName(" ")]
		public decimal BadQty { get; set; }
        /// <summary>
        /// 下线数
        /// </summary>
		[Column("inserting_coil_qty")]
		[DisplayName(" ")]
		public decimal InsertingCoilQty { get; set; }




        [Column("check_time")]
        [DisplayName(" ")]
        public DateTime CheckTime { get; set; }


        #region 业务处理的字段

        /// <summary>
        /// 开始时间
        /// </summary>

        [Column("")]
        [DisplayName(" ")]
        public string strProduceStartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [Column("")]
        [DisplayName(" ")]
        public string strProduceEndTime { get; set; }


        #endregion







    }
}
